package top.ezzz;

import org.noear.solon.Solon;
import org.noear.solon.SolonApp;
import org.noear.solon.annotation.SolonMain;
import uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J;

@SolonMain
public class ChatApp {


    public static void main(String[] args) {
        SysOutOverSLF4J.sendSystemOutAndErrToSLF4J();
        SolonApp app = Solon.start(ChatApp.class, args, solonApp -> {
            // 拦截 / 请求
            solonApp.get("/", (handler) -> {
                handler.output("欢迎使用咕咕聊天后台服务，请从前台访问页面！");
            });
        });
    }

}
